#pragma once

#include <QObject>
#include <QDebug>
#include <MessageParser.h>

namespace Networking
{
    class NetworkManager: public QObject
    {
    Q_OBJECT
    signals:
        void SignalSendMessage(const QString&);
        void SignalNewCommandReady(const Command&);
    public:
        NetworkManager(MessageParser* parser = new MessageParser(), QObject* parent =0) :
            QObject(parent), m_parser(parser)
        {}

        virtual ~NetworkManager()
        {
        }

        void SlotProcessMessage(const QString&);
    protected:
         MessageParser* m_parser;
    };
}
